package com.jvm;

import java.util.ArrayList;
import java.util.List;

public class RuntimConstantPoolOOM {

	public static void main(String[] args) {
		List<String> list = new ArrayList<>();
		
		long i = 0;
		
		while(true) {
			System.out.println(i);
			list.add(String.valueOf(i ++).intern());
		}
	}
}
